package com;

import heima.Zhigong;

public class TestClass {
    public static void main(String[] args) {
        Student stu=new Student();
        System.out.println(stu.getName());
        stu.setAge(22);
        stu.setName("小明");
        System.out.println(stu.getName());
        System.out.println("-----------------------------------------");
        stu.study();
        Zhigong zg=new Zhigong();






        //定义一个Teacher类的对象加载.class文件,创建对象地址,为变量分配内存空间,方法获得一个地址(该地址是方法在方法区存取的字节码文件地址)
//        Teacher t=new Teacher();
//        System.out.println(t.name);
//        System.out.println(t.age);
//        System.out.println(t.sex);
//        System.out.println(t.kec);
//        Teacher tea=new Teacher("李成",35,'男',"数学");
//        System.out.println(tea.toString());
//        tea.xinxi();

    }
}
